package com.oracle.cmp.entity;

import java.util.Date;

public class Emp {
    private Integer id;

    private String name;

    private String sex;

    private String dept;

    private Date hiredate;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept == null ? null : dept.trim();
    }

    public Date getHiredate() {
        return hiredate;
    }

    @Override
	public String toString() {
		return "Emp [id=" + id + ", name=" + name + ", sex=" + sex + ", dept=" + dept + ", hiredate=" + hiredate + "]";
	}

	public void setHiredate(Date hiredate) {
        this.hiredate = hiredate;
    }
}